<div class="tablecontaner">
    <div class="search">
        <div class="searchinfo col-xs-6">
            <input type="text" ng-model="searchWord" class="form-control input-sm" placeholder="输入搜索条件">
        </div>
        <div class="searchbtn col-xs-6">
            <a class="btn btn-sm btn-danger btn-rounded" ng-click="deleteSelected()">
                <i class="glyphicon glyphicon-trash">
                </i>
                删除
            </a>
            <a class="btn btn-sm btn-success btn-rounded" ng-click="searchData()">
                <i class="glyphicon glyphicon-search">
                </i>
                查询
            </a>
        </div>
    </div>
    <table class="edittable">
        <thead>
        <tr>
            <th></th>
            <th ng-show="false">ID</th>
            <th>模型编码</th>
            <th>模型名称</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody ng-show="!isLoading">
        <tr ng-repeat="schema in schemas">
            <td ad-row-select-directive="schema"></td>
            <td ng-show="false">{{schema.schema_id}}</td>
            <td>{{schema.schema_code}}</td>
            <td>{{schema.schema_name}}</td>
            <td>
                <a class="btn btn-sm btn-info btn-outline btn-rounded" ng-click="editRow(schema)">
                    <i class="glyphicon glyphicon-edit">
                    </i>
                    编辑
                </a>
                <a class="btn btn-sm btn-danger btn-outline btn-rounded" ng-click="deleteRow(schema)">
                    <i class="glyphicon glyphicon-trash">
                    </i>
                    删除
                </a>
            </td>
        </tr>
        </tbody>
        <tbody ng-show="isLoading">
        <tr>
            <td colspan="5" class="text-center">
                <img class="imgloading" src="app/images/loading.gif"/>
            </td>
        </tr>
        </tbody>
        <tfoot>
        <tr>
            <td class="text-center" colspan="5">
                <uib-pagination total-items="totalItems" items-per-page="itemsPerPage"
                            ng-model="currentPage" max-size="maxSize"
                            class="pagination-sm" boundary-links="true"
                            next-text="下一页" previous-text="上一页"
                            first-text="首页" last-text="末页"
                            rotate="false" num-pages="numPages"
                            ng-change="pageChanged()"></uib-pagination>
            </td>
        </tr>
        </tfoot>
    </table>
</div>